package com.example.javaeefinal.Service;


import com.example.javaeefinal.pojo.Department;

import java.util.List;

public interface DepartmentService {
    void createNewDepartment(String name, int principal);

    int selectLastCreateDepartmentId();

    void initNewDepInfo(int id);

    void deleteDepartmentById(int id);

    Department selectDepartmentById(int id);

    void updateDepartmentById(int id,String departmentName,int principal);

    void updateDepInfoById(int id,String mail,String address,String code);

    List<Department> getAllDepartment();
}
